home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Life 1995 December
/
Computer Life December 1995.iso
/
tapcis
/
getwea.scr
< prev
next >
Wrap
INI File
|
1995-08-13
|
1KB
|
55 lines
[*About this script*]
This script captures weather reports using the WEA command. By default,
it captures weather for New York, NY and Leesburg, FL. To change the
defaults, modify the city names listed under the "*Cities*" heading below.
Another way to override the defaults is to "install" this script as a
service (with Setup|Service) and then modify the service.SVC file (in the
settings directory), adding a [*Cities*] heading followed by your cities.
Loren Jenkins [76702,1006] - May, 1995
[*Script Setup*]
Title=Get Weather Reports
[*Cities*]
New York, NY
Leesburg, FL
[Begin]
Echo "Getting Weather reports"
if ( @capName$ = "" ) Let @capName$ = @pathMsg$ @svcName$ '.MSG'
WaitList
1 = "^JEnd of report !"
2 = "^JEnd of report :"
endlist
Let @hdrSec$ = "1 Weather reports"
Let @hdrSub$ = "ShortTerm forecasts"
Let @hdrNum = @on
CapHeader
ForEach in Cities[] gosub "GetReport"
Send ''
Wait "!"
goto 'Finished'
[GetReport]
CapClose
Send 'WEA ' @arrItem$
CapWrite "Report for " @arrItem$ ":"
DoWaitList
CapClose
if ( @waitMatch# = 2 ) gosub "GetPrompt"
Return
[GetPrompt]
Send ''
Wait '!'
Return
[Finished]
Echo "End of script"
End